const { ccclass, property } = cc._decorator;

@ccclass
export default class Cube extends cc.Component {

    @property([cc.SpriteFrame])
    ringSpriteFrame: cc.SpriteFrame[] = [];

    cubeSprId = -1;
    onLoad() {

    }

    start() {

    }

    // setSize(isize) {
    //     if (!cc.isValid(isize) || isize >= this.ringSpriteFrame.length) {
    //         this.size = -1;
    //         this.node.getComponent(cc.Sprite).spriteFrame = null;
    //         return;
    //     }
    //     this.size = isize;
    //     this.node.getComponent(cc.Sprite).spriteFrame = this.ringSpriteFrame[this.size];
    // }

    // setColor(colorid) {
    //     if (!cc.isValid(colorid) || colorid >= FkxxlConteroller.ins.colorHexs.length) {
    //         this.colorid = -1;
    //         let cl = new cc.Color().fromHEX(FkxxlConteroller.ins.colorHexs[1]);
    //         this.node.color = cl;
    //         return;
    //     }
    //     this.colorid = colorid;
    //     let cl = new cc.Color().fromHEX(FkxxlConteroller.ins.colorHexs[this.colorid]);
    //     this.node.color = cl;
    // }
}
